package com.szjlxh.data.utils;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by liutao on 16/3/13.
 */
public class Constants {
    public static final String UNIT_DEGREE = "℃";
    public static final String UNIT_WIND = "风";
    public static final String UNIT_LEVEL = "级";
    public static final String UNIT_RAIN = "mm";
    public static final String UNIT_HUMIDITY = "%";


    public static final String[] WEATHERCODE = new String[]{"00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "53", "99"};
    public static final String[] WEATHERNAME = new String[]{"晴", "多云", "阴", "阵雨", "雷阵雨", "雷阵雨伴有冰雹", "雨夹雪", "小雨", "中雨", "大雨", "暴雨", "大暴雨", "特大暴雨", "阵雪", "小雪", "中雪", "大雪", "暴雪", "雾", "冻雨", "沙尘暴", "小到中雨", "中到大雨", "大到暴雨", "暴雨到大暴雨", "大暴雨到特大暴雨", "小到中雪", "中到大雪", "大到暴雪", "浮尘", "扬沙", "强沙尘暴", "霾", "无"};
    private static Map<String, String> map = null;

    public static Map<String, String> getWeatherData() {
        if (map != null) return map;
        map = new HashMap();
        for (int i = 0; i < WEATHERCODE.length; i++) {
            map.put(WEATHERCODE[i], WEATHERNAME[i]);
        }
        return map;
    }

    public static String date = "";
}
